<template>
  <div>
    <mt-swipe :auto="3000">
      <mt-swipe-item v-for="item of lunbolist" :key="item.id">
          <!-- 判断wid是否为true,是则引用该类名 -->
        <img :src="item.img" :class="{'wid':istrue}" />
      </mt-swipe-item>
    </mt-swipe>
  </div>
</template>

<script>
export default {
    props:['lunbolist','istrue']
};
</script>

<style lang="scss" scoped>
.mint-swipe {
  height: 3.5rem;
  text-align: center;
  img {
    height: 100%;
  }
  .wid{
      width: 100%;
  }
}
</style>